package com.zefu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zefu.dao.DeptDao;
import com.zefu.entity.Dept;

import java.util.Map;

@Service("deptService")
public class DeptService {
	@Autowired
	private DeptDao deptDao;
	
	public int insertDept(Dept dept){
		return deptDao.insertDept(dept);
	}

	public int deleteById(int deptId){
		return deptDao.deleteById(deptId);
	}

	public int updateById(Dept deptId){
		return deptDao.updateById(deptId);
	}

	public Dept selectDept(int deptId){
		return deptDao.selectDept(deptId);

		//System.out.println(a);
		//return null;
	}
}
